Objects Reference

class renderGL : public render

Definition

class renderGL : public render
{
  public:
  HGLRC m_hRC;
  HDC hdc;
  HWND hWnd;

  renderGL()
  { type=FLY_RENDER_OPENGL; hdc=0; hWnd=0; m_hRC=0; active=1; };
  virtual ~renderGL()
  { DeleteView(); };

  int CreateView(HWND wnd);
  void DeleteView();
  void ResizeView(int sx,int sy);
  void InitView();
  void DrawView();
  void SetFullScreen();
};

Data Members

Member Type Description
m_hRC HGLRC OpenGL handle
hdc HDC device context handle
hWnd HWND window handle

Methods

CreateView, DeleteView, ResizeView, InitView, DrawView, SetFullScreen

Remarks

This is the OpenGL implementation of the base render class. All OpenGL initializing and render view changes are implemented in its virtual functions. 
A global variable named render is the main interface with this class and must be initialized/freed with the init_render and close_render global functions.

See Also

Global Variables, Global Functions, render